/**
 * 
 */
package orion.jarvis.task;


/**
 * @author Ted
 * 
 */
public class Message  {
	private String msg;
	private ProcessStatus status;

	public String getMessage() {
		return msg;
	}

	public ProcessStatus getStauts() {
		return status;
	}

	public void setMessage(String msg) {
		this.msg = msg;
	}

	public void setStatus(ProcessStatus status) {
		this.status = status;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("[");
		if (status != null)
			sb.append("status = ").append(status.getDesc()).append(", ");
		if (msg != null)
			sb.append("msg = ").append(msg);
		sb.append("]");
		return sb.toString();
	}

}
